diff options
| author | Adam Soltys <[email protected]> | 2022-11-02 19:47:29 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-02 19:48:18 -0700 |
| commit | f0d88333750a2865d3016e92620a87269160effa (patch) | |
| tree | 1cc276efeb5287e1fc176ec60d46aed091ab08ca /src/routes/invoice/[id]/+layout.server.js | |
| parent | b66477f0912349ef91adaff8c57ac787b5a56447 (diff) | |
| download | coinos-ui-f0d88333750a2865d3016e92620a87269160effa.tar.gz coinos-ui-f0d88333750a2865d3016e92620a87269160effa.zip | |
move to app layout
Diffstat (limited to 'src/routes/invoice/[id]/+layout.server.js')
| -rw-r--r-- | src/routes/invoice/[id]/+layout.server.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/routes/invoice/[id]/+layout.server.js b/src/routes/invoice/[id]/+layout.server.js deleted file mode 100644 index 690deda0..00000000 --- a/src/routes/invoice/[id]/+layout.server.js +++ /dev/null @@ -1,14 +0,0 @@ -import Qr from 'qrcode-svg'; -import { get } from '$lib/utils'; - -export async function load({ params }) { - let { id } = params; - let invoice = await get(`/invoice?uuid=${id}`); - let svg = new Qr({ - content: invoice.text, - join: true, - container: 'svg-viewbox' - }).svg(); - - return { id, invoice, svg }; -} |
